package com.itheima.b;

public class Test {
    public static void main(String[] args) {
        Student s1=new Student("小明",18,Sex.X.getSex());
        Student s2=new Student("小红",19,Sex.Y.getSex());
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s1.getSex());
    }
}
